home *** CD-ROM | disk | FTP | other *** search
- From: cgs@umd5.umd.edu (Chris Sylvain)
- Newsgroups: comp.binaries.ibm.pc
- Subject: prenv, demonstrates how to read environment strings
- Date: 24 Sep 88 05:01:01 GMT
- Summary: prenv.arc, demonstrates how to read environment strings
- Approved: dhesi@bsu-cs.UUCP
-
- PRENV demonstrates how to read this program's copy of the parent's
- environment created by COMMAND.COM ... For DOS Ver 3.x, the fully
- justified path name of this program will also be displayed. The
- executable and the assembly source are supplied.
-
- The environment consists of null-terminated ASCII strings (ASCIIZ),
- with the entire list terminated by another null. A 2-byte entry at
- offset 2Ch in the program's program segment prefix (PSP) contains the
- segment of the copy of the environment. The code commenting, wording
- of printing messages and some of the code itself have been changed in
- a number of places.
-
- This is one of three programs, being posted consecutively to this
- newsgroup, that was written using MASM 5.0 by Hardin Brothers for the
- April 1988 issue of PC Resource magazine, (C) Copyright 1988 by IDG
- Communications/Peterborough, Inc.
-
- Hardin Brothers is a freelance programmer and technical writer. Write
- to him at 280 N. Campus Ave., Upland, CA 91786. Enclose a self-
- addressed, stamped envelope for a reply.